﻿using ExcelSystem.ViewModels;
using ExcelSystem.Views;
using Prism.Ioc;
using System.Windows;

namespace ExcelSystem
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<OrderList, OrderListViewModel>();
            containerRegistry.RegisterForNavigation<BOMList, BOMListViewModel>();
            containerRegistry.RegisterForNavigation<BOMListYM, BOMListYMViewModel>();
            
            containerRegistry.RegisterDialog<BOMAdd, BOMAddViewModel>();
            containerRegistry.RegisterDialog<BOMAddYM, BOMAddYMViewModel>();
            
            containerRegistry.RegisterDialog<BOMAddList, BOMAddListViewModel>();
            containerRegistry.RegisterDialog<BOMInfo, BOMInfoViewModel>();
            containerRegistry.RegisterDialog<MaterialFilter, MaterialFilterViewModel>();
            
        }
    }
}
